﻿<local:BaseDataVisualizer 
    x:Class="BrainTechLLC.Silverlight.ClientApplication.GameThingTree"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls"
    xmlns:loc="clr-namespace:BrainTechLLC.Silverlight.ClientApplication" 
    Loaded="BaseDataVisualizer_Loaded"
    xmlns:y="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:common="clr-namespace:System.Windows;assembly=System.Windows.Controls.Toolkit"
    xmlns:BrainTechLLC="clr-namespace:BrainTechLLC;assembly=BrainTechLLC.Silverlight.Core">
    <ScrollViewer Name="scrollViewer" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Top"
                  ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" BorderThickness="0,0,0,0">
        <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" x:Name="stack">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
                <y:TreeView x:Name="lstGameThings" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
                                 Margin="0,0,0,0" Padding="0,0,0,0" Width="Auto" Height="Auto">                    
                    <y:TreeView.ItemTemplate>
                        <common:HierarchicalDataTemplate x:Name="TaxonomyTemplate" ItemsSource="{Binding}">
                            <Grid Width="Auto" HorizontalAlignment="Stretch">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="18"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>                                
                                <TextBlock Name="txt" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="10" Loaded="TextBlock_Loaded"></TextBlock>
                                <loc:FlexibleTypeEditor Grid.Column="1" x:Name="editThing" EditObj="{Binding}" Loaded="Grid_Loaded" RequestEditGameLocation="editThing_RequestEditGameLocation"
                                              Visibility="Visible" RequestEditID="editThing_RequestEditID" RequestGoLocation="editThing_RequestGoLocation"
                                              Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" 
                                              Margin="0,0,0,0" />
                            </Grid>

                        </common:HierarchicalDataTemplate>                        
                    </y:TreeView.ItemTemplate>
                </y:TreeView>
            </Grid>
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Name="pagerCanvas" Background="#FFD1FFF5">
                <loc:Pager HorizontalAlignment="Stretch" Width="Auto" Name="pager" ItemCountChanged="pager_ItemCountChanged" EntryNumberChanged="pager_EntryNumberChanged" VerticalAlignment="Stretch" />
            </Grid>
        </StackPanel>
    </ScrollViewer>
</local:BaseDataVisualizer>
